class Neur:

    def __init__(self, ID, CN, AN, SN, St, SD):
        self.OrgID = ID
        self.CName = CN
        self.AName = AN
        self.SName = SN
        self.Strain = St
        self.SDomains = SD

    def info(self):
        print(f'ID={self.OrgID}\t单元名称：{self.CName}\t档案名称:{self.AName}\t物种名称:{self.SName}\株:{self.Strain}\t结构域:{self.SDomains}')


lst = []
with open("nue.txt", 'r', encoding='utf-8') as f:
    lst1 = f.readlines()
for str in lst1:
    lst2 = str.split('\t')
    lst3 = []
    for items in lst2:
        item = items.split(':')[-1:]
        if item != ['\n']:
            lst3.append(item[0].strip("\xa0 "))
    Neu = Neur(lst3[0], lst3[1], lst3[2], lst3[3], lst3[4], lst3[5])
    if __name__ == '__main__':
        Neu.info()
    lst.append(Neu)



